package org.wzq.config;

import android.os.Environment;
import org.wzq.base.AppInfo;
import org.wzq.base.DeviceInfo;

/**
 * project:
 * author: wzq
 * date: 2014/8/8
 * description:
 */
public class AppConfig {
    public static final String KEY_FIRST_TIME = "is_first_time";// key:首次启动标识
    public static final String KEY_VERSION = "app_version_code";// key:版本信息
    public static final String KEY_USER_ACCOUNT = "user_account";// key:版本信息
    public static final String KEY_IP_LIST = "ip_list";// key:版本信息

    // 上送字段名
    public static final String UPKEY_DEVICE_INFO = "deviceInfo";// key:版本信息
    public static final String UPKEY_USER_INFO = "userInfo";// key:版本信息

    public static final String PLATFORM = "android";
    // 与服务器的token
    public static final String TOKEN = AppConfig.PLATFORM + "," + AppInfo.getInfo() + "," + DeviceInfo.getInfo();
    // SD卡是否可读写
    public static final boolean IS_SD_OK = Environment.MEDIA_MOUNTED.equals(Environment.getExternalStorageState());
    // SD卡 根目录
    public static final String SD_ROOT = Environment.getExternalStorageDirectory().getAbsolutePath();
    // SD卡 文件目录
    public static final String SD_FOLDER = SD_ROOT + "/" + AppInfo.pkgName;

    public static final String APPKEY = "a1b2";
}
